package com.weixingtu.commuterCar.service.impl;

import com.weixingtu.commuterCar.bean.Point;
import com.weixingtu.commuterCar.dao.PointDao;
import com.weixingtu.commuterCar.dao.impl.PointDaoMysql;
import com.weixingtu.commuterCar.service.PointService;

import java.util.List;
import java.util.Map;

public class PointServiceImpl implements PointService {
    private static PointDao dao = new PointDaoMysql();
    /**
     * 用于查询所有站点
     * @return 站点的集合
     */
     public List<Point> findAll() {
        return dao.findAll();
    }
    /**
     * 根据路线查询站点
     * @return 所属路线的站点的集合
     */
    public List<Point> findByLine(int lineId) {
        return dao.findByLine(lineId);
    }
}
